package com.zft.userwalletmanager.infrastructure.common.enums;

public enum ResultCode {
    SUCCESS("000000","操作成功"),
    PARAM_ERROR("000001", "参数错误"),
    SYSTEM_ERROR("999999", "系统异常"),
    WALLET_INFO_IS_NULL("100001","钱包信息为空"),
    WALLET_STATUS_IS_FROZEN("100002","钱包为冻结状态"),
    CURRENCY_IS_NOT_SAME("100003","币种不一致"),
    BALANCE_IS_NOT_ENOUGH("100004", "余额不足"),
    BALANCE_UPDATE_FAIL("100005","余额更新失败"),
    ACCOUNT_INCONSISTENT_CORE_PARAMETERS("100006","业务核心参数不一致"),
    ACCOUNT_IS_SAME("100007","同一账户不能转账");
    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    ResultCode() {
    }
}
